<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <div id="app">
        <input type="text" v-on:keyup.aaaa="handle" v-model="info" />
    </div>
    <!-- 自定义按键修饰符： 名字是自定义的，但是对应的值必须是按键对应的event -->
    <script src="./vue.js"></script>
    <script>
        Vue.config.keyCode.aaaa = 65;
        var vm = new Vue({
            el: "#app",
            data: {
                info: "",
            },
            methods: {
                handle: function(event) {
                    console.log(event.keyCode);
                },
            },
        });
    </script>
</body>

</html>